package leetcode.code0488;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution488 implements IDebug {

	public abstract int findMinStep(String board, String hand);

	@Override
	public void debug1() {
		String board = "WRRBBW";
		String hand = "RB";
		int e = -1;
		int r = this.findMinStep(board, hand);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		String board = "WWRRBBWW";
		String hand = "WRBRW";
		int e = 2;
		int r = this.findMinStep(board, hand);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		String board = "RBYYBBRRB";
		String hand = "YRBGB";
		int e = 3;
		int r = this.findMinStep(board, hand);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		String board = "G";
		String hand = "GGGGG";
		int e = 2;
		int r = this.findMinStep(board, hand);
		HelpDebug.compare(e, r);
	}
	public void debug5() {
		String board = "RRWWRRBBRR";
		String hand = "WB";
		int e = 2;
		int r = this.findMinStep(board, hand);
		HelpDebug.compare(e, r);
	}

	public void debug6() {
		String board = "WWBBWBBWW";
		String hand = "BB";
		int e = -1;
		int r = this.findMinStep(board, hand);
		HelpDebug.compare(e, r);
	}
	public void debug7() {
		String board = "RRBBRRWWBYYGG";
		String hand = "RRWYG";
		int e = 5;
		int r = this.findMinStep(board, hand);
		HelpDebug.compare(e, r);
	}

}
